package com.net.tkc.pro.service;


import com.net.tkc.pro.entity.UserTake;
import com.net.tkc.pro.impl.UserTakeImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserTakeService {
    @Resource
    UserTakeImpl userTake;

    public int addUserTake(UserTake UserTake) {
        return userTake.addUserTake(UserTake);
    }

    public int delUserTake(int id) {
        return userTake.delUserTake(id);
    }

    public List<UserTake> getUserFrom(int userfrom) {
        return userTake.getUserFrom(userfrom);
    }

    public List<UserTake> getUserTo(int userto) {
        return userTake.getUserTo(userto);
    }
    public List<UserTake> getUserTake(int userto,int userfrom) {
        return userTake.getUserTake(userto,userfrom);
    }
}
